package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * ImageLibrary对象 image_library
 *
 * @author xugaokui
 * @date 2025-03-17
 */
public class ImageLibrary extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 图片名称 */
    @Excel(name = "图片名称")
    private String name;

    /** 图片url */
    @Excel(name = "图片url")
    private String url;

    /** 图片分类 */
    @Excel(name = "图片分类")
    private String category;

    /** 上传者 */
    @Excel(name = "上传者")
    private String uploader;

    /** 上传时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date uploadTime;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 图片标签 */
    @Excel(name = "图片标签")
    private String tags;

    /** 图片大小 */
    @Excel(name = "图片大小")
    private Long size;

    /** 图片格式 */
    @Excel(name = "图片格式")
    private String format;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getUrl()
    {
        return url;
    }
    public void setCategory(String category)
    {
        this.category = category;
    }

    public String getCategory()
    {
        return category;
    }
    public void setUploader(String uploader)
    {
        this.uploader = uploader;
    }

    public String getUploader()
    {
        return uploader;
    }
    public void setUploadTime(Date uploadTime)
    {
        this.uploadTime = uploadTime;
    }

    public Date getUploadTime()
    {
        return uploadTime;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setTags(String tags)
    {
        this.tags = tags;
    }

    public String getTags()
    {
        return tags;
    }
    public void setSize(Long size)
    {
        this.size = size;
    }

    public Long getSize()
    {
        return size;
    }
    public void setFormat(String format)
    {
        this.format = format;
    }

    public String getFormat()
    {
        return format;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("url", getUrl())
            .append("category", getCategory())
            .append("uploader", getUploader())
            .append("uploadTime", getUploadTime())
            .append("description", getDescription())
            .append("tags", getTags())
            .append("size", getSize())
            .append("format", getFormat())
            .toString();
    }
}
